# coding:utf-8
# 作者：理想国真恵玩
import pandas as pd
import numpy as np

# 修改
df = pd.DataFrame(
    data=np.random.randint(10, 100, (10, 5)),
    index=['同学%02d' % (i) for i in range(1, 11)],
    columns=['语文', '数学', '英语', '物理', '化学']
)
print(df)

# 将"同学01”修改为“同学_01”的格式
index_new = ['同学_%02d' % (i) for i in range(1, 11)]
df.index = index_new
print('-' * 33)
print(df)
